﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows8Accelerator.Core.Xaml.Controls;

namespace Windows8Accelerator.Core.Xaml.Helpers
{
    public abstract class SuperTextFormatHelperBase
    {
        private static SuperTextFormatHelperBase _Instance;
        public static SuperTextFormatHelperBase Instance
        {
            get
            {
                if (_Instance == null)
                    _Instance = AssemblyHelper.CreateInstanceOfAccelerator<SuperTextFormatHelperBase>();
                return _Instance;
            }
        }

        public abstract void Format(SuperTextFormat textFormat, object control);
        public abstract SuperTextFormat GetFormat(object control);
    }
}
